#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <string.h>#include <sys/ioctl.h>int main(){	int t;	float tempter;	float humidity;	int tempt_fd=open("/dev/dht11_dev",O_RDWR);	if(tempt_fd<0)	{		perror("tempt_fd open fail!");		return -1;	}	while(1)	{		if(read(tempt_fd, &t, 4) ==4)		{			tempter = (float)((t>>8)&(0xff))+(float)(t&(0xff))/10;			humidity = (float)((t>>24)&(0xff))+(float)((t>>16)&(0xff))/10;			printf("tempter = :%.1f\n", tempter);			printf("humidity = :%.1f\n", humidity);					}		sleep(2);			}}